﻿using System.Web;

namespace Altairis.FluffyCloud.WebCore.Handlers {

    public class LogoutHandler : IHttpHandler {

        public bool IsReusable {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context) {
            System.Web.Security.FormsAuthentication.SignOut();
            context.Response.RedirectToRoute("HomePage");
        }
    }
}